|
stepper27 2.2.1
|
Stepper 27 Click Example. More...
Macros | |
| #define | MIKROBUS_POSITION_STEPPER27 MIKROBUS_1 |
Functions | |
| void | application_init (void) |
| void | application_task (void) |
| int | main (void) |
Stepper 27 Click Example.
This example demonstrates the use of the Stepper 27 Click board by driving the motor in both directions for a desired number of steps.
The demo application is composed of two sections :
Initializes the driver and resets the device.
Drives the motor clockwise for 100 slow steps and 300 medium speed steps and then counter-clockwise for 400 fast steps with a 1 second delay on driving mode change. All data is being logged on the USB UART where you can track the program flow.
| #define MIKROBUS_POSITION_STEPPER27 MIKROBUS_1 |
| void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
| void application_task | ( | void | ) |
| int main | ( | void | ) |